package com.example.actearly_revised;

import java.util.HashMap;
import java.util.Map;

public class JournalObject {

	public Map<String, JNode> newMap;
	
	public class JNode{
		public String milestone_in_months;
		public String Text;
		public int profile;
		
		public JNode(String milestone, String text, int profile)
		{
			this.milestone_in_months = milestone;
			this.Text = text;
			this.profile = profile;  // 0 for urgent, 1 for not urgent
			
		}
	}
	
	public JournalObject(){
		newMap = new HashMap<String, JNode>();
	}
	
	public void put(String Milestone_in_Monthes, String Text, int profile){
		
		newMap.put(Milestone_in_Monthes, new JNode(Milestone_in_Monthes, Text, profile) );
	}
	
	public JNode get(String Milestone_in_Monthes){
		return newMap.get(Milestone_in_Monthes);
	}
	
	public int count()
	{
		return newMap.size();
	}
	
	public Map<String, JNode> getMap(){
		return newMap;
	}
}
